import React from 'react';

// import Index from "../views/index"
import Home from "../views/home"
import Menu from "../views/menu"

import Error from "../views/error"

import { lazy } from "react";
const Index=lazy(() => import("../views/index"));
const routers = [
  {
    path: '*',
    exact: false,
    component: <Error></Error>
  },
  {
    path: '/',
    exact: false,
    component: <Index></Index>,
    children: [
      {
        path: '/',
        exact: false,
        component: <Home></Home>
      },
      {
        path: '/menu',
        exact: false,
        component: <Menu></Menu>
      }
    ]
  }
];
export default routers;